/**
 * 文件名：****.java
 * 版权：Copyright Lightkit All Rights Reserved.
 * 描述：*****
 */
package com.lightkits.wms.dto.allotmanagementpc;

import com.lightkits.framework.soa.common.types.BaseRequest;
import com.lightkits.wms.dto.allotmanagementpc.model.RequestHeaderPcDto;
import com.lightkits.wms.dto.allotmanagementpc.model.RequestLinePcDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 魏静
 * @create 2019-07-22 14:41
 * @desc 保存领料单单据
 **/
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class SaveRequestTicketRequestType extends BaseRequest {
    @ApiModelProperty(name = "领料单头")
    @Valid
    @NotNull
    private RequestHeaderPcDto headerPcDto;

    @ApiModelProperty(name = "领料单行")
    @Valid
    @NotNull
    private List<RequestLinePcDto> linePcDtos;

    @ApiModelProperty(name = "是否拆分领料单")
    @NotNull
    private Boolean splitRequestFlag;

}
